<template>
  <div>
      账号：<input type="text" v-model="username">
      <br/>
      密码：<input type="password" v-model="password">
      <br/>
      <button @click="onClickDen">登录</button>
  </div>
</template>

<script>
// import axios from "axios";
export default {
    data(){
        return{
            username:'',
            password:''
        }
    },
    mounted(){
        
    },
    methods:{
        onClickDen(){
           if(this.username == 'admin' && this.password == 'admin'){
               let token = "123464564as6fssfsdfsd"
               localStorage.setItem("token",token);
               this.$message.success("登录成功!")
               this.$router.push("/")
           }
        }
    }
}
</script>

<style>

</style>